<?php
    $table = $this->inflect($this->table)->toTitle();
    $singular = $this->inflect($table)->singularize();
    $this->headTitle($table . ' : Create');
    $this->headLink()->appendStylesheet($this->resource('css/crud.css'));
?>

<?php if (!empty($this->useOwnLayout) || !$this->hasLayout()) echo $this->render('_partials/head.phtml'); ?>

<div id="crud">

<div class="box">
<div class="tabs">
<?php echo $this->navigation(array(
    'Tables' => $this->simpleUrl('index'),
    'List' => $this->simpleUrl('list')->table($this->table),
    'New ' . $singular => null,
), 2); ?>
</div>
<div class="panel">
    <div class="corners-top"><div class="left"></div><div class="right"></div></div>
    <div class="content">

<?php if (!empty($this->messages)) : ?>
<div id="crud-messages">
    <p>
    <?php echo implode("</p>\n<p>", $this->messages); ?>
    </p>
</div>
<?php endif; ?>

<h2>Create new <?php echo strtolower($singular); ?></h2>
<?php echo $this->form->setAction($this->url()) ?>
<div class="cleared"></div>

    </div>
    <div class="corners-bottom"><div class="left"></div><div class="right"></div></div>
</div>

</div>

</div>

<!-- crud/index/create: $Id: create.phtml 9 2009-02-22 07:24:16Z monzee $ -->

<?php if (!empty($this->useOwnLayout) || !$this->hasLayout()) echo $this->render('_partials/foot.phtml'); ?>